<form action="" class="form-horizontal form-ajax" data-toggle="validator" id="add-form" method="POST" role="form">
    {:token()}
        <div class="form-group">
            <label class="control-label col-xs-12 col-sm-2">岗位:</label>
            <div class="col-xs-12 col-sm-8">
                {:build_select('group[]', $groupdata, $groupids, ['class'=>'form-control selectpicker', 'multiple'=>'', 'data-rule'=>'required'])}
            </div>
        </div>
        <div class="form-group">
            <label class="control-label col-xs-12 col-sm-2" for="username">登录账号:</label>
            <div class="col-xs-12 col-sm-8">
                <input class="form-control" data-rule="required;username" id="username" name="row[username]" type="text"
                       value="{$row.username}"/>
            </div>
        </div>
        <div class="form-group">
            <label class="control-label col-xs-12 col-sm-2" for="nickname">姓名:</label>
            <div class="col-xs-12 col-sm-8">
                <input autocomplete="off" class="form-control" data-rule="required" id="nickname" name="row[nickname]" type="text"
                       value="{$row.nickname}"/>
            </div>
        </div>
        <div class="form-group">
            <label class="control-label col-xs-12 col-sm-2">性别:</label>
            <div class="col-xs-12 col-sm-8">
                {:build_radios('row[sex]', [1=>'男', 2=>'女'],$row.sex)}
            </div>
        </div>
        <div class="form-group">
            <label class="control-label col-xs-12 col-sm-2">出生年月:</label>
            <div class="col-xs-12 col-sm-8">
                <input class="form-control datetimepicker" id="birthday"data-date-format="YYYY-MM-DD" data-rule="required"
                       data-use-current="true" name="row[birthday]" type="text" value="{$row.birthday}">
            </div>
        </div>
        <div class="form-group">
            <label class="control-label col-xs-12 col-sm-2">年龄:</label>
            <div class="col-xs-12 col-sm-8">
                <input class="form-control" data-rule="required" data-use-current="true" name="row[age]" type="text" value="{$row.age}">
            </div>
        </div>
        <div class="form-group">
            <label class="control-label col-xs-12 col-sm-2" for="mobile">个人手机号:</label>
            <div class="col-xs-12 col-sm-8">
                <input class="form-control" data-rule="mobile" id="mobile" name="row[mobile]" type="text" value="{$row.mobile}"/>
            </div>
        </div>

<!--        <div class="form-group">-->
<!--            <label class="control-label col-xs-12 col-sm-2" for="mobile">最高学历:</label>-->
<!--            <div class="col-xs-12 col-sm-8">-->
<!--                <input class="form-control" id="education" name="row[education]" type="text" value="{$row.education}"/>-->
<!--            </div>-->
<!--        </div>-->
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2" for="mobile">最高学历:</label>
        <div class="col-xs-12 col-sm-8">
            <input class="col-xs-12 col-sm-8 selectpage" data-field="title" data-pagination="true"
                   data-page-size="10" data-source="trusteeship/my_class/getEducation"
                   id="education_id" name="row[education_id]" style="padding: 5px;"
                   value="{$row.education_id}">
        </div>
    </div>
        <div class="form-group">
            <label class="control-label col-xs-12 col-sm-2" for="mobile">入职时间:</label>
            <div class="col-xs-12 col-sm-8">
                <input class="form-control datetimepicker" data-date-format="YYYY-MM-DD" data-rule="required"
                       data-use-current="true" name="row[entry_time]" type="text" value="{$row.entry_time}">
            </div>
        </div>
        <div class="form-group">
            <label class="control-label col-xs-12 col-sm-2" for="password">{:__('Password')}:</label>
            <div class="col-xs-12 col-sm-8">
                <input autocomplete="new-password" class="form-control" data-rule="" id="password"
                       name="row[password]" type="password" value=""/>
            </div>
        </div>
        <div class="form-group">
            <label class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>
            <div class="col-xs-12 col-sm-8">
                {:build_radios('row[status]', ['normal'=>__('Normal'), 'hidden'=>__('Hidden')],$row['status'])}
            </div>
        </div>

        <div class="form-group hidden layer-footer">
            <label class="control-label col-xs-12 col-sm-2"></label>
            <div class="col-xs-12 col-sm-8">
                <button class="btn btn-primary btn-embossed disabled" type="submit">{:__('OK')}</button>
                <button class="btn btn-default btn-embossed" type="reset">{:__('Reset')}</button>
            </div>
        </div>
</form>
